package com.pingan.internal.point.shopping.controller.form;

import com.pingan.internal.point.shopping.common.utils.DateUtils;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
public class GoodsSaveForm {

    private String operator;

    //商品名称
    private String goodsName;
    //商品价格
    private int goodsPoints;

    private String goodsSn;
    //商品数量
    private int goodsQuantity;
    //商品标签
    private String goodsTag;
    //是否为限制类型
    private boolean limitType;
    //每个会员限制数量
    private int limitCount;

    private String goodsImageName;

    //开始时间
    private Date beginTime;
    //结束时间
    private Date endTime;

    //内容
    private String content;

    public void setBeginTime(String beginTime) {
        this.beginTime = DateUtils.stringToDate(beginTime);
    }

    public void setEndTime(String endTime) {
        this.endTime = DateUtils.stringToDate(endTime);
    }
}
